import BaseAPI from "@/api/base";
import { SetingInfo } from "@/api/base/model";

export const useSystemInfoStore = defineStore("systemInfo", () => {
  const systemInfo = ref<SetingInfo>({
    room: [],
    floor: [],
    position: [],
  });

  function getSystemInfo() {
    // BaseAPI.getBaseInfo().then((data) => {
    //   Object.assign(systemInfo.value, { ...data });
    //   console.log(systemInfo.value, "基础信息");
    // });
  }

  return {
    systemInfo,
    getSystemInfo,
  };
});
